package com.lw.forward;

import cn.hutool.http.HttpUtil;
import com.lw.common.config.IWater;
import io.swagger.v3.oas.annotations.tags.Tag;
import jakarta.annotation.Resource;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@Tag(name = "天擎气象相关接口", description = "气象预警相关接口")
@RequestMapping("/warn")
public class WarnController {

    @Resource
    IWater iWater;


    @GetMapping("/getWarnInfo")
    public String getWarnInfo() {
        String post = HttpUtil.post(iWater.getMusicWarnInfoUrl(), "");
        return post;
    }



}
